package cn.cheln.explorer.cpnt.adapter;

import android.content.Context;
import android.view.View;
import android.widget.TextView;
import cn.cheln.explorer.beans.FileInfo;
import cn.cheln.support.ui.DensityUtil;
import cn.cheln.support.ui.adapter.MapAdapter.AdaptInfo;

public abstract class FileAdapter extends ThumbnailAdapter
{
  int density180 = DensityUtil.dip2px(this.context, 180.0F);
  int density260 = DensityUtil.dip2px(this.context, 260.0F);
  int fileNameMaxWidth;

  public FileAdapter(Context paramContext, MapAdapter.AdaptInfo paramAdaptInfo)
  {
    super(paramContext, paramAdaptInfo);
  }

  public int getPathOnlyItemPos(FileInfo paramFileInfo)
  {
    for (int i = 0; ; ++i)
    {
      if (i >= getCount())
        i = -1;
      do
        return i;
      while (paramFileInfo.getPath().equals(getSimpleFileItem(i).getPath()));
    }
  }

  public abstract FileInfo getSimpleFileItem(int paramInt);

  protected void getViewInDetail(Object paramObject, int paramInt, View paramView)
  {
    super.getViewInDetail(paramObject, paramInt, paramView);
    if (paramObject == null)
      return;
    TextView localTextView = (TextView)paramView.findViewById(2131230803);
    if (((FileInfo)paramObject).getIsDir().booleanValue());
    for (int i = this.density180; ; i = this.density260)
    {
      localTextView.setMaxWidth(i);
      return;
    }
  }
}

/* Location:           H:\360云盘\lewa_explorer_3.0\bin\FileApp_orig_dex2jar.jar
 * Qualified Name:     cn.cheln.explorer.cpnt.adapter.FileAdapter
 * JD-Core Version:    0.5.2
 */